public class Demo7 {
    private String root;
    private String pass;

    public Boolean login(String root,String  pass){
        if(root.equals(this.root)&&pass.equals(this.pass)){
            return true;
        }else{
            return false;
        }
    }
    public void setdatabase(String root,String pass){
        this.root=root;
        this.pass=pass;
    }
}
